ComponentOne Data Source for Entity Framework
C1.LiveLinq Namespace / IndexedQueryExtensions Class / SelectMany Method / SelectMany<TSource,TResult>(IIndexedSource<TSource>,Expression<Func<TSource,IEnumerable<TResult>>>) Method
The type of the elements of source.
The type of the elements of the sequence returned by selector.
A collection of values to project.
A transform function to apply to each element.

In This Topic
    SelectMany<TSource,TResult>(IIndexedSource<TSource>,Expression<Func<TSource,IEnumerable<TResult>>>) Method
    In This Topic
    Projects each element of a collection to a sequence of collections and flattens the resulting collections into one collection.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function SelectMany
        (Of TSource,TResult)( _
       ByVal source As IIndexedSource(Of TSource), _
       ByVal selector As System.Linq.Expressions.Expression(Of Func(Of TSource,IEnumerable(Of TResult))) _
    ) As IIndexedSource(Of TResult)
    public static IIndexedSource<TResult> SelectMany<TSource,TResult>( 
       IIndexedSource<TSource> source,
       System.Linq.Expressions.Expression<Func<TSource,IEnumerable<TResult>>> selector
    )

    Parameters

    source
    A collection of values to project.
    selector
    A transform function to apply to each element.

    Type Parameters

    TSource
    The type of the elements of source.
    TResult
    The type of the elements of the sequence returned by selector.

    Return Value

    An IIndexedSource<TResult> whose elements are the result of invoking the one-to-many transform function on each element of the source collection.
    See Also